package models

import (

	"go-admin/common/models"

)

type Categories struct {
    models.Model
    
    Name string `json:"name" gorm:"type:varchar(50);comment:类别名称"` 
    Description string `json:"description" gorm:"type:varchar(500);comment:描述"` 
    Icon string `json:"icon" gorm:"type:varchar(255);comment:图标"` 
    Sort int64 `json:"sort" gorm:"type:int;comment:排序"` 
    Status string `json:"status" gorm:"type:varchar(20);comment:状态"` 
    models.ModelTime
    models.ControlBy
}

func (Categories) TableName() string {
    return "categories"
}

func (e *Categories) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *Categories) GetId() interface{} {
	return e.Id
}